package com.todo.content.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/3/16 09:57
 * @description
 */
@Data
@Schema(title = "新增内容分类入参", description = "新增内容分类入参")
public class InsertContentClassifyReq {

    private CurrentStaff _staff;
    /**
     * 分类名称
     */
    @Schema(title = "分类名称", description = "分类名称")
    private String name;
    /**
     * 分类code
     */
    @Schema(title = "分类code", description = "分类code")
    private String code;
    /**
     * 分类描述
     */
    @Schema(title = "分类描述", description = "分类描述")
    private String desc;
    /**
     * 主图
     */
    @Schema(title = "主图", description = "主图")
    private String mainImg;
    /**
     * 业务场景
     * {@link com.todo.strategy.common.enums.BusinessSceneEnum}
     */
    @Schema(title = "业务场景", description = "业务场景")
    private Integer businessScene;
    /**
     * 是否开启
     */
    @Schema(title = "是否开启", description = "是否开启")
    private Integer isEnable;

    public boolean baseCheck() {
        if (name == null || code == null || businessScene == null || isEnable == null || mainImg == null || desc == null) {
            return false;
        }
        return true;
    }
}
